package com.chuangshixinchen.enterprise.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

/**
 * 基础排序规则VO
 *
 * @author xc
 */
@Data
public class BaseOrdVo {

    @Pattern(regexp = "[a-zA-Z]")
    @ApiModelProperty(value = "字段名")
    private String prop;

    @Pattern(regexp = "(de|a)scending")
    @ApiModelProperty(value = "排序规则")
    private String order;
}
